#!/usr/bin/env python
# -*- coding:utf-8 -*-

from rest_framework import serializers
from models import UserProfile
class UserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = UserProfile
        fields = ('url', 'name', 'email')